package com.ruoyi.project.system.mapper;

import java.util.List;
import com.ruoyi.project.system.domain.Subscribe;

/**
 * 订阅Mapper接口
 * 
 * @author ruoyi
 * @date 2021-05-18
 */
public interface SubscribeMapper 
{
    /**
     * 查询订阅
     * 
     * @param id 订阅ID
     * @return 订阅
     */
    public Subscribe selectSubscribeById(String id);

    /**
     * 查询订阅列表
     * 
     * @param subscribe 订阅
     * @return 订阅集合
     */
    public List<Subscribe> selectSubscribeList(Subscribe subscribe);

    /**
     * 新增订阅
     * 
     * @param subscribe 订阅
     * @return 结果
     */
    public int insertSubscribe(Subscribe subscribe);

    /**
     * 修改订阅
     * 
     * @param subscribe 订阅
     * @return 结果
     */
    public int updateSubscribe(Subscribe subscribe);

    /**
     * 删除订阅
     * 
     * @param id 订阅ID
     * @return 结果
     */
    public int deleteSubscribeById(String id);

    /**
     * 批量删除订阅
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteSubscribeByIds(String[] ids);
}
